package com.roadjava.demo04;

import com.roadjava.Application;
import com.roadjava.Builder;
import com.roadjava.beans.dto.CarDTO;
import com.roadjava.beans.vo.VehicleVO;
import com.roadjava.convert.demo04.CarConvert04;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class MapStructTest04 {

    @Test
    public void test() {
        CarDTO carDTO = Builder.buildCarDTO();

        VehicleVO vehicleVO = CarConvert04.INSTANCE.carDTO2vehicleVO(carDTO);
        System.out.println(vehicleVO);
    }

}